<?php /* Smarty version 2.6.26, created on 2013-08-21 10:41:27
         compiled from product_create.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'product_create.tpl', 17, false),array('modifier', 'thumb', 'product_create.tpl', 35, false),)), $this); ?>
<div class="box">
  <div class="box-content">
	  <form method="post" enctype="multipart/form-data">
	  <table class="adminlist">
	  <tbody>
	  <tr>
	    <td width="140">Tiêu đề</td>
	    <td><input type="text" class="input-text" name="product_title" /></td>
	  </tr>
	  <tr>
	    <td>Mã sản phẩm</td>
	    <td><input type="text" class="input-text" name="product_code" /></td>
	  </tr>
	  <tr>
	    <td>Danh mục</td>
	    <td>
	      <?php echo smarty_function_html_options(array('name' => 'product_cat_id','options' => $this->_tpl_vars['aCat']), $this);?>

	    </td>
	  </tr>
	  <tr>
	    <td>Giá sản phẩm</td>
	    <td><input type="text" class="input-text" name="product_price" /></td>
	  </tr>
	  <tr>
	    <td>Giá chưa khuyến mãi</td>
	    <td><input type="text" class="input-text" name="product_price_src" /></td>
	  </tr>
	  <tr>
	    <td>Màu sản phẩm</td>
	    <td>
	    	<ul class="color-list clearfix">
				<?php $_from = $this->_tpl_vars['aColor']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['color']):
?>
					<li class="color-wrapper">
						<label class="color-item" style="background-color: <?php echo $this->_tpl_vars['color']['color_code']; ?>
" for="color_id_<?php echo $this->_tpl_vars['color']['color_id']; ?>
">
							<?php if ($this->_tpl_vars['color']['color_thumb'] != ''): ?><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['color']['color_thumb'])) ? $this->_run_mod_handler('thumb', true, $_tmp, 'crop40x40') : smarty_modifier_thumb($_tmp, 'crop40x40')); ?>
" /><?php endif; ?>
						</label>
						<input id="color_id_<?php echo $this->_tpl_vars['color']['color_id']; ?>
" type="checkbox" name="product_color[]" value="<?php echo $this->_tpl_vars['color']['color_id']; ?>
" />
					</li>
				<?php endforeach; endif; unset($_from); ?>
				</ul>
			</td>
	  </tr>
	  <tr>
	    <td>Kích cỡ</td>
	    <td>
	    	<ul class="size-list clearfix">
				<?php $_from = $this->_tpl_vars['aSize']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['size']):
?>
					<li class="size-wrapper">
						<label for="size_id_<?php echo $this->_tpl_vars['id']; ?>
">
							<span class="size-item"><?php echo $this->_tpl_vars['size']; ?>
</span>
						</label>
						<br />
						<input id="size_id_<?php echo $this->_tpl_vars['id']; ?>
" type="checkbox" name="product_size[]" value="<?php echo $this->_tpl_vars['id']; ?>
" />
					</li>
				<?php endforeach; endif; unset($_from); ?>
				</ul>
			</td>
	  </tr>
	  <tr>
	    <td>Hình minh họa</td>
	    <td>
	      <input type="file" class="input-text" name="product_thumb" />
	    </td>
	  </tr>
	  <tr>
	    <td>Hình sản phẩm</td>
	    <td>
	      <div class="plupload"></div>
	    </td>
	  </tr>
	  <tr>
	    <th colspan="2">Mô tả</th>
	  </tr>
	  <tr>
	    <td colspan="2"><textarea class="ckeditor" name="product_desc"></textarea></td>
	  </tr>
	  <tr>
	    <td>Trạng thái</td>
	    <td>
	    	<input type="radio" value="1" name="product_avaiable" id="product_enabled_on" checked="checked" /> <label for="product_enabled_on">Còn hàng</label>  &nbsp; &nbsp; &nbsp;
	      <input type="radio" value="0" name="product_avaiable" id="product_enabled_off" /> <label for="product_enabled_off">Hết hàng</label>
	      
	    </td>
	  </tr>
	  <tr>
	    <td colspan="2" align="center"><input class="input-submit" type="submit" value="Gửi đi" /></td>
	  </tr>
	  </tbody>
	  </table>
	  </form>
  </div>
</div>